package com.yyf.springboot2.controller;

import com.yyf.springboot2.common.ResultBean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yyf
 * @since 2019-05-29
 */
@Controller
@RequestMapping("/tApply")
public class TApplyController {
    /**
     * 注册成为分销中心
     * @return
     */
    @PostMapping("/fxRegister")
    public ResultBean fxRegister(@RequestParam(value = "token")String token,
                                 @RequestParam(value = "name")String name,
                                 @RequestParam(value = "phone")String phone){
        //获取用户的省市区信息


        return  ResultBean.build(200,"成功",null);

    }
	
}
